package com.smart.home.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("能源记录信息")
public class EnergyRecord {

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("设备ID")
    private Long deviceId;

    @ApiModelProperty("记录时间")
    private LocalDateTime timestamp;

    @ApiModelProperty("功率消耗 (kWh)")
    private Double powerConsumption;

    @ApiModelProperty("电压 (V)")
    private Double voltage;

    @ApiModelProperty("电流 (A)")
    private Double current;
}
